
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home/Home.vue'
import Work from '../components/work/Work.vue'

// 挂载到全局
Vue.use(VueRouter)
const routes = [
  { path: '/home',name: 'home',component: Home },
  { path: '/work',name: 'work', component: Work },
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router